_p_o_r_t is the audio port from which you want to discard samples.
This is the returned value of an aaaallllOOOOppppeeeennnnPPPPoooorrrrtttt((((3333ddddmmmm)))) call.
_f_r_a_m_e_c_o_u_n_t expects the number of sample frames that you wish to
discard.
DDDDEEEESSSSCCCCRRRRIIIIPPPPTTTTIIIIOOOONNNN
aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss removes samples from an input or output audio port and
throws them away. Its behavior differs slightly between input and output
ports.
For an input port, aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss discards an arbitrary number of sample
frames. If the given _f_r_a_m_e_c_o_u_n_t exceeds the number of audio sample frames
in the port, aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss will block until the given number of frames
have been discarded. It is thus functionally equivalent to calling
aaaallllRRRReeeeaaaaddddFFFFrrrraaaammmmeeeessss((((3333ddddmmmm)))) and discarding the data, except that aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss is
simpler and more efficient.
For an output port, aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss discards at most as many sample
frames as are in the port, and returns immediately.
In either case, the samples are discarded from the end of the audio queue
closest to the application: on input, the next samples to be read are
discarded; on output, the most recent samples written are discarded.
DDDDIIIIAAAAGGGGNNNNOOOOSSSSTTTTIIIICCCCSSSS
Upon successful completion, aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss returns the number of frames
discarded. Otherwise, it returns -1 and sets an error number which can be
retrieved with oooosssseeeerrrrrrrroooorrrr((((3333CCCC)))).
aaaallllDDDDiiiissssccccaaaarrrrddddFFFFrrrraaaammmmeeeessss can fail for the following reasons:
AAAALLLL____BBBBAAAADDDD____PPPPOOOORRRRTTTT _p_o_r_t is invalid.
AAAALLLL____BBBBAAAADDDD____FFFFIIIILLLLLLLLPPPPOOOOIIIINNNNTTTT _f_r_a_m_e_c_o_u_n_t is less than zero.